﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EntityFrameworkCore.Model
{
  public class SysPermission: EntityBase
    {


   
        public string Code { get; set; }
        /// <summary>
        /// 菜单显示名（如用户页、编辑(按钮)、删除(按钮)）
        /// </summary>
        public string Name { get; set; }


        /// <summary>
        /// 上一级菜单（0表示上一级无菜单）
        /// </summary>
        public Guid? Pid { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderSort { get; set; }
        /// <summary>
        /// 菜单图标
        /// </summary>
        public string Icon { get; set; }


        /// <summary>
        /// 菜单描述    
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 激活状态
        /// </summary>
        public bool IsEnabled { get; set; }


        public PermissionType Type { get; set; }
    }

    public enum PermissionType:byte {

        Menu=0,
        Button=1,
        Page=2,
    }
}
